//
//  PriceQueryCell.m
//  WorkNest
//
//  Created by qbm360 on 15/7/27.
//  Copyright (c) 2015年 nest. All rights reserved.
//

#import "PriceQueryCell.h"

@interface PriceQueryCell ()

@property (weak, nonatomic) IBOutlet UIImageView *image;
@property (weak, nonatomic) IBOutlet UILabel *number;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *statusNote;

@end

@implementation PriceQueryCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (void)setModel:(PriceQueryModel *)model {
    _model = model;
    [self.image setImageWithURL:[NSURL URLWithString:[UIUtil containString:_model.mainImage]] placeholderImage:[UIImage imageNamed:@"tupian"]];
    self.number.text = [NSString stringWithFormat:@"单号: %@", _model.needId == nil ? _model.inquireId : _model.needId];
    self.name.text = _model.developProductName == nil ? _model.inquireProductName : _model.developProductName;
    self.statusNote.text = _model.statusNote;
}

@end
